@extends('admin.layout.index')
@section('content')
	
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>修改订单</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/order/update" method="post">
        		{{ csrf_field() }}
                <input type="hidden" name="oid" value="{{ $oid }}">
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">订单编号</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="uname" value="{{ $data['oid'] }}" disabled>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">下单时间</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="upass" value="{{ $data['otime'] }}" disabled>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">订单价格</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="urepass" value="{{ $data['oprice'] }}" disabled>
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label">订单状态</label>
        				<div class="mws-form-item">
                            <select size="1" name="ostatus" aria-controls="DataTables_Table_0">
                                <option value="1" @if($data['ostatus'] == 1) selected @endif>备货中....</option>
                                <option value="2" @if($data['ostatus'] == 2) selected @endif>出货中....</option>
                                <option value="3" @if($data['ostatus'] == 3) selected @endif>退货中....</option>
                                <option value="4" @if($data['ostatus'] == 4) selected @endif>完成订单</option>
                                
                            </select>
                            <!-- @if($data['ostatus'] == 1) <input type="text" class="small" name="uemail" value="备货中...."> 
                                        @elseif($data['ostatus'] == 2) <input type="text" class="small" name="uemail" value="出货中...."> 
                                        @elseif($data['ostatus'] == 3) <input type="text" class="small" name="uemail" value="退货中....">
                                        @elseif($data['ostatus'] == 4) <input type="text" class="small" name="uemail" value="完成订单"> 
                                        @endif -->
        				<!-- </div> -->
        			</div>
      
        			
        		</div>
        		<div class="mws-button-row">
        			<input type="submit" value="修改" class="btn btn-danger">
        			<input type="reset" value="重置" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection